package model;

public class Student {
    String sno;
    String name;
    String age;

    public Student(String sno, String name, String age){
        this.sno = sno;
        this.name = name;
        this.age = age;
    }
    public void setName(String name) {
        this.name = name;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getSno() {
        return sno;
    }

    public String getAge() {
        return age;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return "学号:" + sno +"   姓名:"+name+"   年龄:"+age;
    }
}
